<template>
    <div class="public-common">
        <!--系统设置-数据同步-->
        <div class="public-title">数据同步/计划任务日志列表</div>
        <div class="public-searchbox">
            <el-row>
                <el-col :span="6">
                    <el-input placeholder="请输入内容" size="mini" v-model="form.test" class="input-with-select"/>
                </el-col>
                <el-col :span="18">
                    <el-button type="primary" size="mini" icon="el-icon-search" style="margin-left:10px;">搜索</el-button>
                    <el-button type="primary" size="mini" icon="el-icon-refresh-right">刷新列表</el-button>
                    <el-button type="warning" size="mini" icon="el-icon-sort">同步车辆照片</el-button>
                    <el-button type="warning" size="mini" icon="el-icon-sort">同步驾驶员照片</el-button>
                </el-col>
            </el-row>
        </div>
        <div class="public-scroll" style="height:calc(100% - 120px)">
        <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                type="selection"
                width="55px">
                </el-table-column>
            <el-table-column
                label="日志类别">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>                
            <el-table-column
                label="开始时间">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="耗时(秒)">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="是否成功">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="新增记录数">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="更新记录数">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="错误信息">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="客户端IP">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="登录名">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
        </el-table>
        </div>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
    </div>
</template>
<script>
export default {
    data(){
        return {
            form:{
                changevalue:"全部",
                test:'',
                carid:''
            },
            tabledata:[
                {carId:1}
            ],
            page:{
              now:1,
              pagesize:10,
              sizes:[2,10, 20, 50, 100],
              total:0,
              key:''
            },
            select:{
                kinds:[
                ]
            },
            dialog:{
                isVisible:false,
                checked:true,
                test:''
            }
        }
    },
    mounted(){
        
    },
    methods:{
        
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>
<style lang="scss">

</style>